import http from '@/utils/http';
import Vue from 'vue';
const apiPlugin = {
    install(Vue) {
        const api = {
			// 账号密码登录
            login(data) {
                return http.post('user/login', data);
            },
			// 短信验证码登录
			mobilelogin(data) {
			    return http.post('user/mobilelogin', data);
			},
			// 发送短信验证码
			send(data) {
			    return http.post('user/mobilelogin', data);
			},
			// 骑手首页信息
			rider_index(data) {
			    return http.post('ordertaker/ordertaker/rider_index', data);
			},
			// 骑手技能技能列表
			skill_list(data) {
			    return http.post('ordertaker/ordertaker/skill_list', data);
			},
			// 骑手修改技能
			rider_skill(data) {
			    return http.post('ordertaker/ordertaker/rider_skill', data);
			},
			// 我的-设置-骑手信息
			store_information(data) {
			    return http.post('ordertaker/ordertaker/store_information', data);
			},
			// 骑手钱包金额
			my_wallet(data) {
			    return http.post('ordertaker/ordertaker/my_wallet', data);
			},
			//我的-设置-登录密码未设置
			login_set(data) {
			    return http.post('ordertaker/ordertaker/login_set', data);
			},
			// 我的-设置-登录密码已设置
			login_passwords(data) {
			    return http.post('ordertaker/ordertaker/login_passwords', data);
			},
			// 骑手资产列表
			financialrecords_list(data) {
			    return http.post('ordertaker/ordertaker/financialrecords_list', data);
			},
			// 骑手评价列表
			shop_evaluation_reply(data) {
			    return http.post('ordertaker/ordertaker/shop_evaluation_reply', data);
			},
			// 数据统计
			rider_statistics(data) {
			    return http.post('ordertaker/ordertaker/rider_statistics', data);
			},
			// 骑手订单列表
			rider_order_list(data) {
			    return http.post('Ordertaker/order/rider_order_list', data);
			},
			// 拖车订单详情
			mall_orders(data) {
			    return http.post('Ordertaker/order/mall_orders', data);
			},
			// 拖车骑手点击接单
			taking_orders(data) {
			    return http.post('Ordertaker/order/taking_orders', data);
			},
			//拖车已到达车辆位置
			been_reached(data) {
			    return http.post('Ordertaker/order/vehicle_position_has_been_reached', data);
			},
			//拖车已到达目的地
			arrived_at_destination(data) {
			    return http.post('Ordertaker/order/arrived_at_destination', data);
			},
			// 拖车删除订单
			delete_order(data) {
			    return http.post('Ordertaker/order/delete_order', data);
			},
			//骑手申述原因
			appeal_list(data) {
			    return http.post('ordertaker/order/appeal_list', data);
			},
			// 拖车接单员申诉
			order_taker(data) {
			    return http.post('Ordertaker/order/complaint_from_the_order_taker', data);
			},
			// 换电池接单员申诉
			appeal_for_battery_replacement(data) {
			    return http.post('Ordertaker/order/appeal_for_battery_replacement', data);
			},
			//开锁订单详情
			unlocking_order(data) {
			    return http.post('Ordertaker/order/unlocking_order', data);
			},
			//开锁点击接单
			unlocking_orders(data) {
			    return http.post('Ordertaker/order/unlocking_orders', data);
			},
			// 开锁已到达目的地
			the_destination(data) {
			    return http.post('Ordertaker/order/unlocking_arriving_at_the_destination', data);
			},
			// 开锁确定服务完成
			service_completed(data) {
			    return http.post('Ordertaker/order/unlocking_service_completed', data);
			},
			//开锁删除订单
			unlocking_delete_order(data) {
			    return http.post('Ordertaker/order/unlocking_delete_order', data);
			},
			//开锁接单员申诉
			unlocking_complaint_from_the_order_taker(data) {
			    return http.post('Ordertaker/order/unlocking_complaint_from_the_order_taker', data);
			},
			// 换电池接单订单
			the_battery_order(data) {
			    return http.post('Ordertaker/order/replacing_the_battery_order', data);
			},
			//电池订单详情
			battery_orders(data) {
			    return http.post('Ordertaker/order/battery_orders', data);
			},
			//换电池确认取货订单
			confirm_pickup_order(data) {
			    return http.post('Ordertaker/order/confirm_pickup_order', data);
			},
			// 换电池确认完成订单
			confirm_delivery_order(data) {
			    return http.post('Ordertaker/order/confirm_delivery_order', data);
			},
			//换电池删除订单
			replace_battery_and_delete(data) {
			    return http.post('Ordertaker/order/replace_battery_and_delete', data);
			},
			// 换电池确认服务完成
			service_completed(data) {
			    return http.post('Ordertaker/order/service_completed', data);
			},
			//服务订单
			service_order(data) {
			    return http.post('Ordertaker/order/service_order', data);
			},
			//服务点击接单
			service_orders(data) {
			    return http.post('Ordertaker/order/service_orders', data);
			},
			//服务已到达目的地
			service_destination(data) {
			    return http.post('Ordertaker/order/service_arriving_at_the_destination', data);
			},
			//服务确定服务完成
			service_completed(data) {
			    return http.post('Ordertaker/order/service_completed', data);
			},
			//服务删除订单
			service_delete_order(data) {
			    return http.post('Ordertaker/order/service_delete_order', data);
			},
			//服务接单员申诉
			service_order_taker(data) {
			    return http.post('Ordertaker/order/service_complaint_from_the_order_taker', data);
			},
			// 规则/协议 
			rule(data) {
			    return http.post('index/rule',data);
			},
			// 银行列表
			bank() {
			    return http.post('ordertaker/ordertaker/bank');
			},
			// 绑定银行卡
			add_bank_card(data) {
			    return http.post('ordertaker/ordertaker/add_bank_card',data);
			},
			// 骑手银行卡
			my_bank() {
			    return http.post('ordertaker/ordertaker/my_bank');
			},
			// 骑手提现
			rider_withdrawal(data) {
			    return http.post('ordertaker/ordertaker/rider_withdrawal',data);
			},
			//骑手订单搜索
			rider_order_search(data) {
			    return http.post('Ordertaker/order/rider_order_search',data);
			},
			//骑手带点击更换电池状态
			qrsds(data) {
			    return http.post('Ordertaker/order/jdzt',data);
			},
			
			
        };
        
        Vue.prototype.$api = api;
    }
};


Vue.use(apiPlugin);